package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 油耗记录
 * </p>
 *
 * @author yangtianqi
 * @since 2024-11-06
 */
@Getter
@Setter
  @TableName("mes_oil_consume_info")
@ApiModel(value = "MesOilConsumeInfo对象", description = "油耗记录")
public class MesOilConsumeInfo implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("编号")
      private String code;

      @ApiModelProperty("农机设备id")
      private Long deviceId;

      @ApiModelProperty("农机名称")
      private String deviceName;

      @ApiModelProperty("农机编号")
      private String deviceCode;

      @ApiModelProperty("加油时间")
      @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
      private LocalDateTime refuelTime;

      @ApiModelProperty("加油型号")
      private String oilModel;

      @ApiModelProperty("用油id")
      private Integer oilId;

      @ApiModelProperty("金额")
      private BigDecimal totalAmount;

    private String createBy;

    private LocalDateTime createTime;
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String remark;

      @ApiModelProperty("凭证")
      private String bill;


    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate refuelTimeStart;

    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate refuelTimeEnd;


    @TableField(exist = false)
    private String registrant;
}
